import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/sport/getPagInfo',
    method: 'get',
    params: query
  })
}
export function del(id) {
  return request({
    url: '/sport/del' + id,
    method: 'delete'
  })
}
/* 文件上传 */
export function uploadImg(data) {
  return request({
    method: 'post',
    type: 'upload',
    url: '/sport/fileOne',
    headers: {
      "Content-Type": "multipart/form-data"
    },
    data
  })
}
